package com.oalam.bookstore.domain.shopping;

import com.oalam.bookstore.domain.shopping.Discount;

/**
 * This class adds responsibilities to the component.
 * @version 1.0
 * @created 04-ao�t-2011 13:57:35
 */
public class FixDiscount extends Discount {


    public FixDiscount(AbstractPrice p, double amount) {
        super(p,amount);
    }

    @Override
    public double getPriceToPay() {

        return priceDecorated.getPriceToPay() - amount;
    }
}